using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace kongjian19
{
    [Designer(typeof(TongJi_EMS._TJ_Basic.TJ_BasicControlDesigner))]
    public partial class jinxian_400_down : TongJi_EMS._TJ_Basic.TJ_BasicControl
    {
        private float x, y;
        public jinxian_400_down()
        {
            InitializeComponent();
        }

        private void jinxian_400_down_Paint(object sender, PaintEventArgs e)
        {

            Pen a = new Pen(Color.Turquoise, 1);
            SolidBrush b1 = new SolidBrush(Color.Turquoise);



            e.Graphics.FillPolygon(b1, new PointF[3]{new PointF (x/2,y/2),
                                               new PointF(x*3/2,y/2),
                                               new PointF(x,y)});
            e.Graphics.DrawLine(a, x, 0, x, y * 2);
        }

        private void jinxian_400_down_Resize(object sender, EventArgs e)
        {
            this.x = this.Width / 2;
            this.y = this.Height / 2;
            //this.Refresh();

        }

        private void jinxian_400_down_Load(object sender, EventArgs e)
        {
            jinxian_400_down_Resize(sender, e);
        }

    }
}